/*
 * OrderBO.java
 *
 * Created on March 7, 2007, 1:16 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Data;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Danny Beutler
 */
public class OrderBO {
    private String id;
    private String vendor;
    private List<OrderLineBO> orderLineList = new ArrayList<OrderLineBO>();
    private boolean alreadyInDB=false;
    private boolean dirty =true;
    /** Creates a new instance of OrderBO */
    public OrderBO(String GUID) {
        this.id=GUID;
    }
    
    /** Gets the order GUID */
    public String getId() {
        return id;
    }
    /** Gets the order Vendor */
    public String getVendor() {
        return vendor;
    }
    
    /** Sets the order Vendor */
    public void setVendor(String vendor) {
        this.vendor = vendor;
    }
    
    /** Gets the order OrderLineList */
    public List<OrderLineBO> getOrderLineList() {
        return orderLineList;
    }
    /** Sets the order OrderLineList */
    public void setOrderLineList(List<OrderLineBO> orderLineList) {
        this.orderLineList = orderLineList;
    }
    
    public void addOrderLine(OrderLineBO orderLine){
        orderLineList.add(orderLine);
    }
    
    /** Gets the order alreadyInDB Variable */
    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }
    
    /** Sets the order alreadyInDB */
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }
    
    /** Gets the order isDirty*/
    public boolean isDirty() {
        return dirty;
    }
    
    /** Sets the order dirty variable */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }
    

    
    
}
